-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add compatibility with Sulu 2.5 - Symfony 6 #162
Conversation
Hi, The only issue I can report for now is a problem when uploading an avatar.
Here: SuluCommunityBundle/Controller/SaveMediaTrait.php Lines 100 to 111 in 0f96d4c
instead of call |
I just found another problem. When a form isn't valid, an http 422 code need to be returned. This is automatically done by the controller if you use |
Sorry for the late response here. First really thank you for the pull request. We are still Supporting Symfony 5.4 and SwiftMailer in this repository. Also the old symfony security System (PasswordEncoder). So the following things would be required to be tackled:
For the 422 status code I would create a seperate issue and PR as that should be out of scope of this update. /cc @Jupi007 |
@alexander-schranz Okay, makes sense. Edit: I created the issue #165 |
@Jupi007 i would not even use that method just make sure that the 422 is returned in case of errors. |
Oh, you're right. I hadn't thought at this possibility. |
Any news here ? |
@alexander-schranz i have fixed a small issue with the completion listener! the rest of this branch works well. please review the code and merge it when its ok for you |
The BC layers mention in #162 (comment) are still missing.
|
is there a an available version compatible with Sulu 2.5 and symfony 6 ? |
Hi all, I played around with the PR and stumbled upon some problems, if you really still want to maintain SwiftMailer compatibility. But when running the tests with swiftmailler installed, I got the following behaviour:
So I am currently unsure, how you want to proceed here @alexander-schranz . To me it seems, this whole compatiblity layer does not work anyway. And I am unsure, as of how much work, I should put into this, with hopefully sulu 3 looming on the horizon anyway. As I am in need of this bundle, I would be willing to put some effort in this. |
Command/InitCommand.php
Outdated
@@ -198,7 +198,7 @@ private function addPermissions(RoleInterface $role, string $system, string $web | |||
} | |||
} | |||
|
|||
if (0 === \strpos($securityContext, 'sulu.webspaces.') | |||
if (\str_starts_with($securityContext, 'sulu.webspaces.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not possible with PHP 7.2 which is still supported /cc @martinlagler
DependencyInjection/CompilerPass/CommunityManagerCompilerPass.php
Outdated
Show resolved
Hide resolved
639fdd1
to
40e6096
Compare
2061319
to
c269d91
Compare
What's in this PR?
Compatibility with Sulu 2.5 - Symfony 6
BC Breaks/Deprecations
Removed compatibility with Swiftmailer (replaced with Symfony/Mailer)
Removed compatibility with Symfony 4.4